function columns() {
  return [
    {
      field: 'predictAccountDate',
      width: 150,
      header: {
        filter: {
          title: '全款到账日期', 
          key: 'predictAccountDate',
          placeholder: '请选择',
          date: {
            type: 'daterange'
          },
        }
      },
    },
    {
      field: 'accumulateMoney',
      title: '累计回款金额(元)',
      width: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    },
    {
      field: 'settlementAmount',
      title: '本次结算总销(元)',
      width: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    },
    {
      field: 'settlementTotalSales',
      title: '已结算总销(元)',
      width: 130,
      cell: {
        text: {
          type: 'number'
        }
      }
    },
    {
      field: 'settledAgentCost',
      title: '已结算代理费(元)',
      width: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    },
    {
      field: 'skipAgentCostPer',
      title: '跳点代理费率(%)',
      width: 150,
      cell: {
        value: (row) => row.skipAgentCostPer ? `${Number(row.skipAgentCostPer)}` : '',
        text: {}
      }
    },
    {
      field: 'skipAgentCost',
      title: '本次跳点代理费(元)',
      width: 160,
      cell: {
        text: {
          type: 'number'
        }
      }
    },
    {
      field: 'depositPer',
      title: '保证金比例(%)',
      width: 130,
      cell: {
        value: (row) => row.depositPer ? `${Number(row.depositPer)}` : '',
        text: {}
      }
    },
    {
      field: 'depositAmount',
      title: '保证金(元)',
      width: 130,
      cell: {
        text: {
          type: 'number'
        }
      }
    }
  ]
}

export default {
  columns
}
